@isTest
public class DatauploadControllerTest
{
    static testMethod void DatauploadControllerTest()
    {
        //创建User
        
		PageReference page = new PageReference('/apex/dataupload');
        System.Test.setCurrentPage(page);
        DatauploadController d = new DatauploadController();
        d.init();
        d.selectedObj = 'Log__c';
        
        d.getFields();//获取字段
        //数据
        
        d.rs = '操作名,操作者,错误日志\nopt1,,errlog1\nopt2,,errlog2';
        
    }
}